import json,execjs,xlrd,time,sys,os,re
import subprocess

aa = {
    "age" : 24,
    "name" : [1,2,3,45],
    "sex" : '男',
    "false" : False
}

aa = json.dumps(aa, ensure_ascii=False, indent=4)



book = xlrd.open_workbook('111.xlsx')
sheet1 = book.sheet_by_index(0)

key1 = sheet1.cell_value(rowx=1, colx=1)  #
print(key1,type(key1))  #浮点型数据
    



'''注：如果写入表格中为false，表格会自动将其转为FALSE
，使用xlrd读出来时就是0
写入为True，，表格会自动将其转为TRUE,则读出来为1.0
'''

def create1k():
    s = ""
    for i in range(1024):
        s += '*'
    return s

def create1m():
    s = ""
    x = create1k()
    for i in range(1024):
        s += x
    return s

def create1g():
    s = ""
    x = create1m()
    for i in range(1024):
        s += x
    return s

print("begin")
s = ""
''' for i in range(1,1025):
    s += create1m()
    time.sleep(0.1)
    print(str(i) + "m ok")
    print(str(len(s)) + ' bytes  ', sys.getsizeof(s)) '''

''' obj={}
for i in range(1,1025):
    obj[i] = create1m
    print(str(sys.getsizeof(obj))+'bytes') '''
